package qnb.controller;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import qnb._common.easyui.MenuVO;
import qnb.service.SysPowerService;

/**
 * @author huangxin
 * @date 2019/5/20-10:33
 */
@Controller
@RequestMapping("sysPower")
public class SysPowerController {
    @Autowired
    private SysPowerService sysPowerService;

    @ResponseBody
    @RequestMapping("readMenu")
    public List<MenuVO> readAdminMenu(){
    	List<MenuVO> vo=new ArrayList<>();
    	//模拟菜单数据
    	vo.add(this.getMenuVO(666, "课表添加", "course/forward/add"));
    	vo.add(this.getMenuVO(667, "课表列表", "course/forward/list"));
        return vo;
    }

    public MenuVO getMenuVO(int id,String name,String url) {
    	MenuVO m=new MenuVO();
    	m.setId(id);
    	m.setName(name);
    	m.setFile(url);
    	return m;
    }
}
